home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6965 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  35 lines

  1. Path: sun001.spd.dsccc.com!spd!jmccarty
  2. From: jmccarty@spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Tough FACTORIAL math problem...
  5. Date: 16 Feb 1996 19:49:01 GMT
  6. Organization: DSC Communications Corporation, Plano, Texas USA
  7. Message-ID: <4g2n3d$kqe@sun001.spd.dsccc.com>
  8. References: <4fr8be$ass@news.iconn.net> <31224679.6193@born.com> <4fv74c$chq@gatekeeper.alcatel.no> <4fvgbu$kmb@winx03.informatik.uni-wuerzburg.de>
  9. NNTP-Posting-Host: aplo139.spd.dsccc.com
  10.  
  11. In article <4fvgbu$kmb@winx03.informatik.uni-wuerzburg.de>,
  12. Jochen Schoof <schoof@informatik.uni-wuerzburg.de> wrote:
  13.  
  14. [stuff gone]
  15.  
  16. )When multiplying to another number y the LSD of the result can be determined
  17. )by calculating LSD(n*LSD(y)) in most cases (see tabular below). 
  18.  
  19. [snip]
  20.  
  21. )Storing additional digits is not neccessary. If two numbers of at least 
  22. )two digits have no zeroes in their rightmost digit, the two rightmost
  23. )digits of their product cannot both be zero and are determined from the
  24. )two rightmost digits of the two numbers. If you don't believe me feel
  25. )free to expand the tabular above for these numbers. Unfortunately you'll
  26. )have to write down 8100 entries... :-)
  27.  
  28. So 125 * 108 cannot end in 2 zeroes, correct?
  29.  
  30. Mike
  31. ----
  32. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  33.  
  34. I don't speak for DSC.         <- They make me say that.
  35.